package com.victor.service;

import java.util.List;

import com.victor.entity.Administrator;
import com.victor.entity.Department;
import com.victor.entity.soncompany.Soncompany;

public interface SoncompanyService {

	/**
	 * 添加子公司
	 * 
	 * @return
	 */
	public boolean addSonCompany(Soncompany soncompany);

	/**
	 * 添加部门信息
	 * 
	 * @param departments
	 */
	public boolean addSonCompanydepartments(Department departments);

	/**
	 * 查询公司本部员工
	 * 
	 * @param soncompanyid
	 * @return
	 */
	public List<Administrator> getOwnEmployee(String soncompanyid);

	/**
	 * 查询下属公司列表
	 * 
	 * @param soncompanyid
	 * @return
	 */
	public List<Soncompany> getSubordinateCompany(String soncompanyid);

	/**
	 * 修改公司详情
	 * 
	 * @param soncompany
	 * @return
	 */
	public boolean updSoncompany(Soncompany soncompany);

	/**
	 * 删除所有本公司的原部门
	 * 
	 * @param id
	 */
	public boolean delFormerDepartment(Integer companyid);

}
